//package com.coolbi.onsupai.core.test;
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//import org.apache.log4j.Logger;
//import org.junit.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.test.context.ContextConfiguration;
//import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
//
//import com.coolbi.onsupai.core.biz.CouponBiz;
//import com.coolbi.onsupai.core.entity.Coupon;
//@ContextConfiguration(locations ={"classpath*:/spring/applicationContext*.xml"})
//public class CouponTestCase extends AbstractJUnit4SpringContextTests{
//	public static final Logger log=Logger.getLogger(CouponTestCase.class);
//	@Autowired
//	private CouponBiz couponBiz;
//
//	public void setCouponBiz(CouponBiz couponBiz) {
//		this.couponBiz = couponBiz;
//	}
///*
//	@Test
//	public void testSave() throws Exception {
//		Coupon c=new Coupon();
//		c.setEquivalence(1000);
//		couponBiz.save(c);
//		log.info("Coupon.equivalence-------->"+c.getEquivalence());
//	}
//*/
///*	@Test
//	public void testDelete() throws Exception{
//		couponBiz.delete(1);
//	}*/
//
///*	@Test
//	public void testUpdate() throws Exception{
//		Coupon c=new Coupon();
//		c.setId(2l);
//		c.setEquivalence(2000);
//		couponBiz.update(c);
//	}*/
//
///*	@Test
//	public void testGet() throws Exception{
//		Coupon c=couponBiz.get(2);
//		log.info("c.equivalence"+c.getEquivalence());
//	}*/
///*
//	@Test
//	public void testList()throws Exception {
//		List<Coupon> list=couponBiz.list();
//		log.info("list.length-------->"+list.size());
//	}*/
//
//	/*@Test
//	public void testListByPage() throws Exception {
//		List<Coupon> list = couponBiz.listByPage(0, 5);
//		log.info("list.length------->"+list.size());
//	}*/
//
///*	@Test
//	public void testFind() {
//		Map<String,Object>parameter=new HashMap<String,Object>();
//		parameter.put("couponNo", 1001);
//		couponBiz.find(parameter);
//	}
//*/
//
///*	@Test
//	public void testSearch() {
//		Map<String, Object> parameter = new HashMap<String, Object>();
//		parameter.put("couponNo", 1001);
//		List<Coupon> list = couponBiz.search(parameter, 0, 5);
//		log.info("list.size------------------->" + list.size());
//	}
//*/
///*	@Test
//	public void testCount() {
//		log.info("CouponBiz.count------------------->" + couponBiz.count());
//	}*/
//
///*	@Test
//	public void testCountByKeyWord() {
//		Map<String, Object> parameter = new HashMap<String, Object>();
//		parameter.put("couponNo", 1002);
//		log.info("CouponBiz.countByKeyWord------->" + couponBiz.countByKeyWord(parameter));
//	}
//*/
////	@Test
////	public void testFindByCouponNo() {
////		Coupon coupon = couponBiz.findByCouponNo("0006", 7L);
////		System.out.println("coupon---->" + coupon);
////	}
//	
//}
